package com.chandra.pos.customer.dao.entity;

/**
 * Created with IntelliJ IDEA.
 * Customer: T4671
 * Date: 10/2/13
 * Time: 8:43 AM
 * To change this template use File | Settings | File Templates.
 */
public enum  Titles {

    MR(1, "Mr"),
    MRS(2, "Mrs"),
    MS(3, "Ms"),
    DR(4,"Dr");

    private int code;
    private String label;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    private Titles(int code, String label) {
        this.code = code;
        this.label = label;

    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("Title");
        sb.append("{code=").append(code);
        sb.append(", label='").append(label).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
